//
// Decompiled by Jadx - 474ms
//
package me.plusne.common.Json.Soul;

import java.io.Serializable;

public class JsonSuccess implements Serializable {
    private int code;
    private String message;
    private boolean success;

    public boolean canEqual(Object obj) {
        return obj instanceof JsonSuccess;
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof JsonSuccess)) {
            return false;
        }
        JsonSuccess jsonSuccess = (JsonSuccess) obj;
        if (!jsonSuccess.canEqual(this) || getCode() != jsonSuccess.getCode() || isSuccess() != jsonSuccess.isSuccess()) {
            return false;
        }
        String message = getMessage();
        String message2 = jsonSuccess.getMessage();
        return message != null ? message.equals(message2) : message2 == null;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public int hashCode() {
        int code = ((getCode() + 59) * 59) + (isSuccess() ? 79 : 97);
        String message = getMessage();
        return (code * 59) + (message == null ? 43 : message.hashCode());
    }

    public boolean isSuccess() {
        return this.success;
    }

    public void setCode(int i) {
        this.code = i;
    }

    public void setMessage(String str) {
        this.message = str;
    }

    public void setSuccess(boolean z) {
        this.success = z;
    }

    public String toString() {
        return "JsonSuccess(code=" + getCode() + ", message=" + getMessage() + ", success=" + isSuccess() + ")";
    }
}
